import request from '@/utils/request'

// 查询面试安排列表
export function listInterviews(query) {
  return request({
    url: '/job/interviews/list',
    method: 'get',
    params: query
  })
}

// 查询面试安排详细
export function getInterviews(id) {
  return request({
    url: '/job/interviews/' + id,
    method: 'get'
  })
}

// 新增面试安排
export function addInterviews(data) {
  return request({
    url: '/job/interviews',
    method: 'post',
    data: data
  })
}

// 修改面试安排
export function updateInterviews(data) {
  return request({
    url: '/job/interviews',
    method: 'put',
    data: data
  })
}

// 删除面试安排
export function delInterviews(id) {
  return request({
    url: '/job/interviews/' + id,
    method: 'delete'
  })
}
